#ifndef DTWENTY_H
#define DTWENTY_H


#include <campaign.h>
#include <attributes.h>
#include <dice.h>
#include <feats.h>
#include <skills.h>
#include <specialabilities.h>
#include <characterclass.h>
#include <classspecialabilities.h>



static int CAMPAIGN_TYPE;
static int ATTRIBUTES_TYPE;
static int DICE_TYPE;
static int FEATS_TYPE;
static int SKILLS_TYPE;
static int SPECIALS_TYPE;
static int CHARACTER_CLASSES_TYPE;
static int CHARACTER_CLASS_TYPE;

static int CLASS_SKILLS_TYPE;
static int CLASS_SPECIALS_TYPE;


static inline void initDTwenty()
{
    CAMPAIGN_TYPE = qRegisterMetaType<Campaign>("Campaign");
    ATTRIBUTES_TYPE = qRegisterMetaType<Attributes>("Attributes");
    DICE_TYPE = qRegisterMetaType<Dice>("Dice");
    FEATS_TYPE = qRegisterMetaType<Feats>("Feats");
    SKILLS_TYPE = qRegisterMetaType<Skills>("Skills");
    SPECIALS_TYPE = qRegisterMetaType<SpecialAbilities>("SpecialAbilities");

    CHARACTER_CLASSES_TYPE = qRegisterMetaType<CharacterClasses>("CharacterClasses");
    CHARACTER_CLASS_TYPE = qRegisterMetaType<CharacterClass>("CharacterClass");

    CLASS_SKILLS_TYPE = qRegisterMetaType<ClassSkills>("ClassSkills");
    CLASS_SPECIALS_TYPE = qRegisterMetaType<ClassSpecials>("ClassSpecials");
}


#endif // DTWENTY_H
